
export JAVAC=javac
export JAVAFLAGS=-classpath $(shell pwd):$(shell pwd)/jai_core.jar:$(shell pwd)/jai_codec.jar:$(shell pwd)/mysql-connector-java-5.1.5-bin.jar:$(shell pwd)/jcert.jar:$(shell pwd)/jnet.jar:$(shell pwd)/jsse.jar:$(shell pwd)/j2me.jar:$(shell pwd)/mmapi.jar

default:
	#$(MAKE) -C com
	#$(MAKE) -C org
	$(MAKE) -C uk

status:
	@svn status | grep -v \.class

run-test: default
	java -Xmx1024m uk/ac/cam/cl/oscar/SimpleImageTests 

run-ctest: default
	java $(JAVAFLAGS) -Xmx1024m uk/ac/cam/cl/oscar/ComplexImageTests

run-mms-server: default
	java -Xmx1024m uk/ac/cam/cl/oscar/MMS_server/MainServer

run-server: default
	java -Xmx1024m uk/ac/cam/cl/oscar/phone_client_server/Main

clean:
	$(MAKE) -C com clean
	$(MAKE) -C org clean
	$(MAKE) -C uk clean
